package com.bzzoneit.newsys.service.admin;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.bzzoneit.newsys.entity.admin.Menu;

public interface MenuService {

	/**
	 * 获取菜单
	 * 
	 * @param userId
	 * @return
	 */
	@Transactional
	List<Menu> getMainMenuList(Long userId);

	List<Menu> getListByParentId(Long userId,Long parentId);
	String getTreeStringByParentId(Long userId,Long parentId,boolean isinSide) ;
	List<Menu> getSubMenuList(Long userId,Long parentId);
	List<Menu> getAllMenuList();
	
	void updateOrinsertMenu(Menu menu);
	void deleteIds(List<Long> ids);
	Menu getMenu(Long id);

}